﻿using System;

namespace Glue.Converters
{
    internal class ShortLongConverter:GlueDefaultConverter<short,long>
    {
        internal override long InternalMapTowardsRight(short from)
        {
            return Convert.ToInt64(from);
        }

        internal override short InternalMapTowardsLeft(long from)
        {
            return Convert.ToInt16(from);
        }
    }
}
